Easy to Create, Easy to Change - Easy to use!

Support::

Control Procedure



Parameters


Returns/Result


Examples


Reference

Control Procedure

Type

Concept

Purpose

A Control procedure is a procedure that lets you link other procedures together with or without conditional processing actions specified by Procedural commands.

A Control procedure can link any number of procedures together and can automatically initiate several actions, including run procedure, backup db (database), install application, etc.

Usage

A Control procedure is used primarily to link Processing procedures together. It can include any combination of Control commands, Processing commands, and Procedural commands.

For a full explanation of any of the DQL commands, see the individual command entry in this lexicon.

Example

if current user name = "PAUL" then

call menu "RECREATIONAL ADMIN" .

run procedure "MAILING LIST" .

else

call menu "MAIN MENU" .

end

 

This Control procedure tells DataEase: If the current user is Paul, (1) Display the RECREATIONAL ADMIN menu, (2) run the procedure that generates an up-to-date mailing list, and (3) if the current user is not Paul, display the main menu.

See Also


On the forum about Control Procedure

Can I add a time-delay during stages of a Control Procedure?

I'm using LegEasy 6.53 and frequently need to run a series of 19 procedures.  - In theory I can group them together under a Control Procedure, but if I do that the system crashes when the Control Procedure runs.- If I run the...

Product: LegEasy 6 Windows. Written by Ian Kelly 16/05/19 at 22:58:39

Re:Can I add a time-delay during stages of a Control Procedure?

There are ways to do this but if you avoid the problem is hard to say. In 6.53 you don't have any timer so you would have to resort to a loop inside your control procedure.define "timer" time. run procedure "one" .tim...

Product: LegEasy 6 Windows. Written by DataEase 20/05/19 at 11:09:55

On the blog about Control Procedure